
#include "mainwindow.h"
#include "./ui_mainwindow.h"

#include "GameModel.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    //设置窗口大小
    setFixedSize(margin * 2 + block_size * board_size,
                 margin * 2 + block_size * board_size);

}

MainWindow::~MainWindow()
{
    delete ui;
}


